
BOOST_INC=/usr/local/include/boost-1_39

TARGETS= gpx2gpb gpbprint gpxfind gpxdist gpxsegments

all: ${TARGETS}

clean:
	rm -f gpx2gpb gpbprint gpxfind gpxdist gpxsegments

gpx2gpb: gpx2gpb.cc
	g++ -o $@ $< -I${BOOST_INC} -I../src -I../proto -L../src -lgpb -L/usr/local/lib -lprotobuf -lgflags -lglog

gpxfind: gpxfind.cc
	g++ -o $@ $< -I/usr/local/include -I${BOOST_INC} -I../src -I../proto -L../src -lgpb -L/usr/local/lib -lprotobuf -lgflags -lglog -lkmlbase

gpxdist: gpxdist.cc
	g++ -o $@ $< -I/usr/local/include -I${BOOST_INC} -I../src -I../proto -L../src -lgpb -L/usr/local/lib -lprotobuf -lgflags -lglog -lkmlbase

gpxsegments: gpxsegments.cc
	g++ -o $@ $< -I/usr/local/include -I${BOOST_INC} -I../src -I../proto -L../src -lgpb -L/usr/local/lib -lprotobuf -lgflags -lglog -lkmlconvenience -lkmlengine -lkmldom -lkmlbase

gpbprint: gpbprint.cc
	g++ -o $@ $< -I${BOOST_INC} -I/usr/local/include/google -I../src -I../proto -L../src -lgpb -L/usr/local/lib -lprotobuf -lgflags -lglog

gpbinfo: gpbinfo.cc
	g++ -o $@ $< -I${BOOST_INC} -I/usr/local/include/google -I../src -I../proto -L../src -lgpb -L/usr/local/lib -lprotobuf -lgflags -lglog

gpb2csv: gpb2csv.cc
	g++ -o $@ $< -I${BOOST_INC} -I/usr/local/include/google -I../src -I../proto -L../src -lgpb -L/usr/local/lib -lprotobuf -lgflags -lglog
